import Vue from 'vue'
import VueRouter from 'vue-router'

import Index from "../components/Index"
import List from "../components/user/List"
import FileManage from "../components/filemanage/FileManage"
import Dashboard from "../components/dashboard/Dashboard"

Vue.use(VueRouter);

export default new VueRouter({
    routes: [
        {
            path:'/',
            redirect:'/index'
        },
        {
            path:'/index',
            component:Index,
            children: [
                {
                  path: '/index',
                  component: Dashboard
                },
                {
                    path:'/users',
                    component:List
                },
                {
                    path: '/file',
                    component: FileManage
                }
            ]
        }
    ],
    mode: 'history'
});
